package state;

// 已投币状态
class HasCoinState implements VendingMachineState {
    @Override
    public void insertCoin() {
        System.out.println("You have already inserted a coin.");
    }

    @Override
    public void selectProduct() {
        System.out.println("Product selected. Dispensing...");
    }

    @Override
    public void dispense() {
        System.out.println("Please select a product first.");
    }
}
